import request from '@/utils/request'

// 查询發票明細列表
export function listInvoiceItem(query) {
  return request({
    url: '/biz/invoiceItem/list',
    method: 'get',
    params: query
  })
}

// 查询發票明細详细
export function getInvoiceItem(id) {
  return request({
    url: '/biz/invoiceItem/' + id,
    method: 'get'
  })
}

// 新增發票明細
export function addInvoiceItem(data) {
  return request({
    url: '/biz/invoiceItem',
    method: 'post',
    data: data
  })
}

// 修改發票明細
export function updateInvoiceItem(data) {
  return request({
    url: '/biz/invoiceItem',
    method: 'put',
    data: data
  })
}

// 删除發票明細
export function delInvoiceItem(id) {
  return request({
    url: '/biz/invoiceItem/' + id,
    method: 'delete'
  })
}
